package com.shenhan.datasource.utils;

import org.apache.commons.lang3.time.FastDateFormat;

/**
 * @Author shenhan
 * @Date: 2020/9/7 22:47
 * @Description:
 */
public abstract class TimeUtil {
    public static String format(Long timestamp, String pattern) {
        return FastDateFormat.getInstance(pattern).format(timestamp);
    }
}
